package com.dlz.systemshop.pojo;

import lombok.Data;

import java.util.List;
@Data
public class PageResult<T> {
    private int pageNumber;      // 当前页码
    private int pageSize;        // 每页大小
    private int totalRecords;    // 总记录数
    private List<T> data;        // 数据列表
    public PageResult(int pageNumber, int pageSize, int totalRecords, List<T> data) {
        this.pageNumber = pageNumber;
        this.pageSize = pageSize;
        this.totalRecords = totalRecords;
        this.data = data;
    }
}
